package com.alen.sun.service;

import com.alen.sun.bean.Category;
import com.alen.sun.bean.PageBean;

import java.util.List;

public interface CategoryService {
    //添加分类
    Boolean addCategory(Category category);

    //修改分类
    Boolean updateCategory(Category category);

    //删除分类
    Boolean deleteCategory(Category category);

    //分页查询
    PageBean page(Integer page, Integer pageSize);

    //批量删除
    Boolean deleteByIds(List<String> ids);

    //获取
    List<Category> list();

    List<Category> word(String searchName);
}
